"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));

var _jsxRuntime = require("react/jsx-runtime");

var _icons = require("@ant-design/icons");

var _antdV = require("antd-v4");

var _react = require("react");

var _GlobalFooter = _interopRequireDefault(require("./components/GlobalFooter"));

var Footer = _antdV.Layout.Footer;

var FooterView = function FooterView(_ref) {
  var links = _ref.links,
      copyright = _ref.copyright,
      style = _ref.style,
      className = _ref.className,
      prefixCls = _ref.prefixCls;
  return (0, _jsxRuntime.jsx)(Footer, {
    className: className,
    style: (0, _objectSpread2.default)({
      padding: 0
    }, style),
    children: (0, _jsxRuntime.jsx)(_GlobalFooter.default, {
      links: links,
      prefixCls: prefixCls,
      copyright: copyright === false ? null : (0, _jsxRuntime.jsxs)(_react.Fragment, {
        children: [(0, _jsxRuntime.jsx)(_icons.CopyrightOutlined, {}), " ", copyright]
      })
    })
  });
};

var _default = FooterView;
exports.default = _default;